package demo1;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-18
 * Time: 12:07
 */
public class Test {


    public static void main1(String[] args) {
        String s1 = "abd";
        String s2 = "dkg";
        StringBuilder s = new StringBuilder(6);
        s.append(s2);
        System.out.println(s.toString());
    }

        public static boolean repeatedSubstringPattern(String s) {
            int ret = 0;
            for(int i = 0;i<s.length();i++){
                ret ^= s.charAt(i);
            }
            if(ret == 0){
                return true;
            }else{
                return false;
            }

        }

    public static void main2(String[] args) {
        System.out.println(repeatedSubstringPattern("ababab"));
    }


}
